let arr = [1, 2, 3, 4, 2];
let res = Math.max(...arr);
console.log(res);
